package com.lucy.wx.miniapp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;

@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "wx_mini_map")
@ApiModel(value = "小程序用户关联",description = "小程序用户关联")
public class MiniAppMap implements Serializable {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @ApiModelProperty(value = "用户信息ID",name = "id")
    Long id;

    @ApiModelProperty("小程序用户OPENID")
    @Column(name = "open_id")
    String openId;

    @ApiModelProperty("小程序ID")
    @Column(name = "app_id")
    String appId;

    @ApiModelProperty("关联用户ID")
    @Column(name = "user_id")
    Long userId;
}
